<template>
  <el-card class="box-card" style="margin-bottom:30px">
    <el-row>
      <el-col :span="6">{{name1}}123</el-col>
      <el-col :span="1"></el-col>
      <el-col :span="6">{{name1}}123</el-col>
      <el-col :span="1"></el-col>
      <el-col :span="6">{{name1}}123</el-col>
      <el-col :span="4"></el-col>
    </el-row>
    <el-row>
      <el-col :span="6">
        <el-input v-model="input" placeholder="Please input" size="large" class="w-2 m-2" />
      </el-col>
      <el-col :span="1"></el-col>
      <el-col :span="6">
        <el-input v-model="input" placeholder="Please input" size="large" />
      </el-col>
      <el-col :span="1"></el-col>
      <el-col :span="6">
        <el-select v-model="value" class="m-2" placeholder="Select" size="large">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
      </el-col>
      <el-col :span="4">
        <el-button type="primary" round>搜索</el-button>
        <el-button round>重置</el-button>
      </el-col>
    </el-row>
    <!-- 大部分页面是3个输入框，少量是3个以上，定义插槽 -->
    <slot name="addInput"></slot>
  </el-card>
</template>

<script>
import { ref } from 'vue'
export default {
  props: {
    name1: {
      type: String,
      default: ''
    },
    name2: {
      type: String,
      default: ''
    },
    name3: {
      type: String,
      default: ''
    }
  },
  setup () {
    const input = ref('')
    const value = ref('')
    const options = [
      {
        value: 'Option1',
        label: 'Option1'
      },
      {
        value: 'Option2',
        label: 'Option2'
      },
      {
        value: 'Option3',
        label: 'Option3'
      },
      {
        value: 'Option4',
        label: 'Option4'
      },
      {
        value: 'Option5',
        label: 'Option5'
      }
    ]
    return { input, options, value }
  }
}
</script>

<style>
</style>
